package Third;

/**
 * @author 长风无言
 */
public class UserTest {

    public static void main(String[] args) {

        Card card1 = new Card();

        card1.setcardKind(CardKind.BIG);
        card1.setPhoneNum("12345678910");
        card1.setUser("张三");
        card1.setPassword("987654321");
        card1.setBalance((float) 520.1314);
        card1.setTalkTime(50);

        card1.show();

        TalkPackage talker = new TalkPackage(card1.getTalkTime(),120, (float) 12.34);
        InternetPackage inter= new InternetPackage((float) 488.98, (float) 34.21);

        talker.show();
        inter.show();

        UserInfo user = new UserInfo(card1.getTalkTime(), inter.getInternetTraffic(), (talker.getMonthPay()+ inter.getMonthPay()));

        InternetServer inter1 = new InternetPackage();
        TalkServer talker1 = new TalkPackage();

        inter1.internetTraffic(inter.getInternetTraffic());
        inter1.cardKind(card1.getCardKind());

        talker1.talkTime(card1.getTalkTime());
        talker1.cardKind(card1.getCardKind());

    }

}
